package com.computercourse.learning.dao;

import com.computercourse.framework.domain.learning.CicUserAnswer;
import com.computercourse.framework.domain.learning.CicUserComment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description:
 * @author: yuanfeng
 * @date: Created in 2020/2/15 4:05 下午
 * @version: 1.0
 */
@Repository
public interface CicUserCommentRepository extends JpaRepository<CicUserComment,String> {

    //根据用户Id和课程Id查询
    List<CicUserComment> findAllByCourseIdOrderByCommentTimeDesc(String courseId);
}
